//package com.zq.learing.test;
//
//import com.zq.spring.IndexController3;
//import com.zq.spring.config.DiConfig;
//import com.zq.spring.controller.IndexController;
//import org.springframework.context.annotation.AnnotationConfigApplicationContext;
//
///**
// * @Author: zhaoqi
// * @Date: 2020/4/24 0:47
// * @Version 1.0
// */
//
////   获取spring容器     需要在DiConfig里扫描指定的包
//public class AnnotationContextTest {
//    public static void main(String[] args) {
//        System.out.println("--------------"+123);
//        AnnotationConfigApplicationContext acwc = new AnnotationConfigApplicationContext(DiConfig.class);
//        IndexController3 indexController3 = acwc.getBean(IndexController3.class);
//        IndexController indexController = acwc.getBean(IndexController.class);
//
//        System.out.println(indexController3);
//
//        System.out.println(indexController);
//
//        /*
//        IndexController indexController = acwc.getBean(IndexController.class);
//        System.out.println("indexController---" + indexController);
//        String  s = indexController.Test("12345678");
//        System.out.println(s);
//        acwc.close();
//        */
//    }
//}
